import request from './request'

// 直播管理API
export const liveApi = {
  // 查询直播
  getLiveList(data) {
    return request({
      url: '/live/find',
      method: 'post',
      data
    })
  },

  // 新增直播
  addLive(data) {
    return request({
      url: '/live/insert',
      method: 'post',
      data
    })
  },

  // 修改直播
  updateLive(data) {
    return request({
      url: '/live/update',
      method: 'put',
      data
    })
  },

  // 删除直播
  deleteLive(id) {
    return request({
      url: '/live/delete',
      method: 'delete',
      params: { id }
    })
  }
}